<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <link href="../css/element.css" rel="stylesheet"/>
    <link href="../css/styleindex.css" rel="stylesheet"/>
    <link href="../css/swiper.min.css" rel="stylesheet"/>
    <style>
    .el-tabs__item.is-active{
      color: #058142;
    }.el-tabs__active-bar{
      background-color: #058142;
    }.el-tabs{
      background-color: #fff;
    }.x-ico-month .el-input__inner{
      border: 0;
      font-size: 1rem;
      text-align: center;
    }.el-input__prefix{
      display: none;
    }.el-tabs__content{
      background-color: #EFF0F4;
    }
    </style>
</head>
<body style="background:#EFF0F4;">

  <div class="mui-content">
    <div id="vm" class="x-examok" v-cloak>
      <div class="x-header-g" id="header">
        <a class="x-header-arrow" @click="api.closeWin()"></a>
        <div class="x-header-t">月计划</div>
      </div>
      <!--  -->
      <div class="x-ico-month" style="margin-bottom:1rem;">
        <el-date-picker v-model="cardsmonth" type="month" placeholder="选择月" @change="getmonth" format="yyyy 年 MM 月" value-format="yyyyMM"></el-date-picker>
      </div>
      <!--  -->
      <template>
        <el-tabs v-model="activeName" @tab-click="handleClick">
          <el-tab-pane label="招聘计划" name="first">
            <!--  -->
            <div class="x-workforce-tabs swiper-container" style="margin:1rem">
              <div class="swiper-wrapper">
                <div class="swiper-slide x-workforce-items" v-for="(item,index) in tabsdata" :key="item.id" @click="changetab(index,item.id)" :class="{active:curId==index}">{{item.title}}</div>
              </div>
            </div>
            <!--  -->
            <div class="x-pro-list" v-for="(item,index) in prodata" :key="item.key" v-if="prodata!=''">
              <div class="x-pro-top">招聘计划{{index+1}}</div>
              <div class="x-pro-row">
                <div class="x-pro-label">招聘职位:</div>
                <div class="x-pro-input">
                  <el-select v-model="item.jobid" placeholder="请选择" :disabled="isfromindex">
                    <el-option v-for="item in positiondata" :key="item.id" :label="item.title" :value="item.id"></el-option>
                  </el-select>
                </div>
              </div>
              <div class="x-pro-row">
                <div class="x-pro-label">年龄要求:</div>
                <div class="x-pro-input">
                  <el-input placeholder="请输入内容" v-model="item.age" :disabled="isfromindex"></el-input>
                </div>
              </div>
              <div class="x-pro-row">
                <div class="x-pro-label">性别要求:</div>
                <div class="x-pro-input">
                  <el-select v-model="item.gender" placeholder="请选择" :disabled="isfromindex">
                    <el-option v-for="item in genderdata" :key="item.id" :label="item.title" :value="item.id"></el-option>
                  </el-select>
                </div>
              </div>
              <div class="x-pro-row">
                <div class="x-pro-label">工作经验:</div>
                <div class="x-pro-input">
                  <el-input placeholder="请输入内容" v-model="item.work_length" :disabled="isfromindex"></el-input>
                </div>
              </div>
              <div class="x-pro-row">
                <div class="x-pro-label">综合薪资:</div>
                <div class="x-pro-input">
                  <el-input placeholder="请输入内容" v-model="item.wage" :disabled="isfromindex"></el-input>
                </div>
              </div>
              <div class="x-pro-row">
                <div class="x-pro-label">招聘人数:</div>
                <div class="x-pro-input">
                  <el-input placeholder="请输入内容" v-model="item.num" :disabled="isfromindex"></el-input>
                </div>
              </div>
              <div class="x-pro-row">
                <div class="x-pro-label">补充时间:</div>
                <div class="x-pro-input">
                  <el-date-picker v-model="item.times" type="date" placeholder="选择日期" format="yyyy 年 MM 月 dd 日" value-format="yyyy-MM-dd" :disabled="isfromindex" :editable="notkey"></el-date-picker>
                </div>
              </div>
              <div class="x-pro-row">
                <div class="x-pro-label">招聘渠道:</div>
                <div class="x-pro-input">
                  <el-input placeholder="请输入内容" v-model="item.job_source" :disabled="isfromindex"></el-input>
                </div>
              </div>
            </div>
            <div class="x-nothing" v-if="prodata==''">还没有内容哦</div>
          </el-tab-pane>
          <el-tab-pane label="人才培养" name="second">
            <!--  -->
            <div class="x-workforce-tabs swiper-containertwo" style="margin:1rem">
              <div class="swiper-wrapper">
                <div class="swiper-slide x-workforce-items" v-for="(item,index) in tabsdata" :key="item.id" @click="changetabtwo(index,item.id)" :class="{active:curIdtwo==index}">{{item.title}}</div>
              </div>
            </div>
            <!--  -->
            <div class="x-pro-list" v-for="(item,index) in prodata" :key="item.key" v-if="prodata!=''">
              <div class="x-pro-top">人才培养计划{{index+1}}</div>
              <div class="x-pro-row">
                <div class="x-pro-label">姓名:</div>
                <div class="x-pro-input">
                  <el-select v-model="item.memberid" placeholder="请选择" :disabled="isfromindex" @change="getnameselect(item.memberid,index)">
                    <el-option v-for="itemk in perdata" :key="itemk.id" :label="itemk.username" :value="itemk.id"></el-option>
                  </el-select>
                </div>
              </div>
              <div class="x-pro-row">
                <div class="x-pro-label">晋升通道:</div>
                <div class="x-pro-input">
                  <el-select v-model="item.promoteid" placeholder="请选择" :disabled="isfromindex" @change="tochangelevel(item.promoteid,index)">
                    <el-option v-for="item in growupdata" :key="item.id" :label="item.title" :value="item.id"></el-option>
                  </el-select>
                </div>
              </div>
              <div class="x-pro-row">
                <div class="x-pro-label">原职级:</div>
                <div class="x-pro-input">
                  <el-input placeholder="请输入内容" v-model="item.pre_level" disabled="true"></el-input>
                </div>
              </div>
              <div class="x-pro-row">
                <div class="x-pro-label">培养职级:</div>
                <div class="x-pro-input">
                  <el-select v-model="item.joblevelid" placeholder="请选择" :disabled="isfromindex">
                    <el-option v-for="item in leveldata" :key="item.id" :label="item.title" :value="item.id"></el-option>
                  </el-select>
                </div>
              </div>
              <div class="x-pro-row x-pro-rowblock">
                <div class="x-pro-label">学习内容:</div>
                <div class="x-pro-input">
                  <el-input placeholder="请输入内容" v-model="item.content" type="textarea" :rows="4" :disabled="isfromindex"></el-input>
                </div>
              </div>
              <div class="x-pro-row">
                <div class="x-pro-label">负责人:</div>
                <div class="x-pro-input">
                  <el-select v-model="item.set_memberid" placeholder="请选择" :disabled="isfromindex">
                    <el-option v-for="item in perdata" :key="item.id" :label="item.username" :value="item.id"></el-option>
                  </el-select>
                </div>
              </div>
            </div>
            <div class="x-nothing" v-if="prodata==''">还没有内容哦</div>
          </el-tab-pane>
          <el-tab-pane label="全员培养" name="third">
            <div class="x-pro-list" v-for="(item,index) in prodatathird" :key="item.key" v-if="prodatathird!=''">
              <div class="x-pro-top">全员培训计划{{index+1}}</div>
              <div class="x-pro-row">
                <div class="x-pro-label">培训主题:</div>
                <div class="x-pro-input">
                  <el-input placeholder="请输入内容" v-model="item.title" :disabled="isfromindex"></el-input>
                </div>
              </div>
              <div class="x-pro-row">
                <div class="x-pro-label">培训时间:</div>
                <div class="x-pro-input">
                  <el-date-picker v-model="item.times" type="date" placeholder="选择日期" format="yyyy 年 MM 月 dd 日" value-format="yyyy-MM-dd" :disabled="isfromindex" :editable="notkey"></el-date-picker>
                </div>
              </div>
              <div class="x-pro-row">
                <div class="x-pro-label">培训地点:</div>
                <div class="x-pro-input">
                  <el-input placeholder="请输入内容" v-model="item.addr" :disabled="isfromindex"></el-input>
                </div>
              </div>
              <div class="x-pro-row">
                <div class="x-pro-label">参加人:</div>
                <div class="x-pro-input">
                  <el-input placeholder="请输入内容" v-model="item.person" :disabled="isfromindex"></el-input>
                </div>
              </div>
              <div class="x-pro-row x-pro-rowblock">
                <div class="x-pro-label">培训内容描述:</div>
                <div class="x-pro-input">
                  <el-input placeholder="请输入内容" v-model="item.content" type="textarea" :rows="4" :disabled="isfromindex"></el-input>
                </div>
              </div>
              <div class="x-pro-row">
                <div class="x-pro-label">负责人:</div>
                <div class="x-pro-input">
                  <el-select v-model="item.liable_memberid" placeholder="请选择" :disabled="isfromindex">
                    <el-option v-for="item in perdata" :key="item.id" :label="item.username" :value="item.id"></el-option>
                  </el-select>
                </div>
              </div>
              <div class="x-pro-row">
                <div class="x-pro-label">培训方式:</div>
                <div class="x-pro-input">
                  <el-select v-model="item.study_type" placeholder="请选择" :disabled="isfromindex" multiple>
                    <el-option v-for="item in classtype" :key="item.id" :label="item.title" :value="item.id"></el-option>
                  </el-select>
                </div>
              </div>
              <div class="x-pro-row">
                <div class="x-pro-label">考核方式:</div>
                <div class="x-pro-input">
                  <el-select v-model="item.exam_type" placeholder="请选择" :disabled="isfromindex">
                    <el-option v-for="item in examtype" :key="item.id" :label="item.title" :value="item.id"></el-option>
                  </el-select>
                </div>
              </div>
            </div>
            <div class="x-nothing" v-if="prodatathird==''">还没有内容哦</div>
          </el-tab-pane>
          <el-tab-pane label="团建活动" name="fourth">
            <div class="x-pro-list" v-for="(item,index) in prodatafour" :key="item.key" v-if="prodatafour!=''">
              <div class="x-pro-top">团建活动计划计划{{index+1}}</div>
              <div class="x-pro-row">
                <div class="x-pro-label">团建主题:</div>
                <div class="x-pro-input">
                  <el-input placeholder="请输入内容" v-model="item.title" :disabled="isfromindex"></el-input>
                </div>
              </div>
              <div class="x-pro-row">
                <div class="x-pro-label">团建时间:</div>
                <div class="x-pro-input">
                  <el-date-picker v-model="item.times" type="date" placeholder="选择日期" format="yyyy 年 MM 月 dd 日" value-format="yyyy-MM-dd" :disabled="isfromindex" :editable="notkey"></el-date-picker>
                </div>
              </div>
              <div class="x-pro-row">
                <div class="x-pro-label">参加人:</div>
                <div class="x-pro-input">
                  <el-input placeholder="请输入内容" v-model="item.person" :disabled="isfromindex"></el-input>
                </div>
              </div>
              <div class="x-pro-row x-pro-rowblock">
                <div class="x-pro-label">团建形式简述:</div>
                <div class="x-pro-input">
                  <el-input placeholder="请输入内容" v-model="item.way" type="textarea" :rows="4" :disabled="isfromindex"></el-input>
                </div>
              </div>
              <div class="x-pro-row x-pro-rowblock">
                <div class="x-pro-label">团建意义简述:</div>
                <div class="x-pro-input">
                  <el-input placeholder="请输入内容" v-model="item.content" type="textarea" :rows="4" :disabled="isfromindex"></el-input>
                </div>
              </div>
              <div class="x-pro-row">
                <div class="x-pro-label">负责人:</div>
                <div class="x-pro-input">
                  <el-select v-model="item.liable_memberid" placeholder="请选择" :disabled="isfromindex">
                    <el-option v-for="item in perdata" :key="item.id" :label="item.username" :value="item.id"></el-option>
                  </el-select>
                </div>
              </div>
            </div>
            <div class="x-nothing" v-if="prodatafour==''">还没有内容哦</div>
          </el-tab-pane>
        </el-tabs>
      </template>
    </div>
  </div>

  <script type="text/javascript" src="../script/vue.js"></script>
  <script type="text/javascript" src="../script/element.js"></script>
  <script type="text/javascript" src="../script/api.js"></script>
  <script type="text/javascript" src="../script/base.js"></script>
  <script type="text/javascript" src="../script/swiper.min.js"></script>
	<script>
apiready = function () {
    $api.fixStatusBar($api.byId('header'));


    //
    var vm = new Vue({
      el:'#vm',
      data(){
        return{
          curId:0,
          cardsmonth:'',
          activeName: 'first',
          tabsdata:[],
          onlyfirst:false,
          deptid:'',
          isfromindex:true,
          positiondata:'',//职位
          genderdata:[{
            'title':'不限',
            'id':'0'
          },{
            'title':'男',
            'id':'1'
          },{
            'title':'女',
            'id':'2'
          }],
          notkey:false,
          istype:'0',
          prodata:'',
          growupdata:'',
          leveldata:'',
          perdata:'',
          //
          deptidtwo:'',
          curIdtwo:0,
          classtype:[{
            'title':'查看资料',
            'id':'1'
          },{
            'title':'讲解演示',
            'id':'2'
          },{
            'title':'在岗实操',
            'id':'3'
          },{
            'title':'电子微课',
            'id':'4'
          },{
            'title':'线下课',
            'id':'5'
          }],
          examtype:[{
            'title':'无考核',
            'id':'0'
          },{
            'title':'提问考核',
            'id':'1'
          },{
            'title':'线上答题',
            'id':'2'
          },{
            'title':'实操鉴定',
            'id':'3'
          },{
            'title':'能力测评',
            'id':'4'
          }],
          prodatathird:'',
          prodatafour:'',

        }
      },
      created:function() {
        var that=this;


      },
      mounted:function(){
        var that=this;
        //当前月份
        var date = new Date();
        var year = date.getFullYear();
        var month = date.getMonth()+1;
        if(month<10){
          month = '' + 0 + month;
        }
        var toMonth = '' + year + month;
        that.cardsmonth = toMonth;
        that.getposition()//招聘职位
        that.getperson()//人
        that.getdatafirst()//1

      },
      methods: {
        //
        changetab:function(index,id){
          var that = this;
          that.deptid = id;
          that.curId = index;
          that.getdatafirst()
        },
        //
        changetabtwo:function(index,id){
          var that = this;
          that.deptidtwo = id;
          that.curIdtwo = index;
          that.getdatatwo()
        },
        //
        getdatafirst:function(){
          let that=this;
          api.ajax({
            url:baseurl+'api/meeting/getMonthRecruit',
            methods:'get',
            data:{
              values:{
                sec: $api.getStorage('apptoken'),
                date:that.cardsmonth,
                deptid:that.deptid,
                _ssid:$api.getStorage('jobid')
              }
            }
          },function(ret,err){
            if(ret){
              api.hideProgress();
              console.log(JSON.stringify(ret));
              if(ret.status == 1){
                  for(var i=0;i<ret.data.depts.length;i++){
                    that.tabsdata.push({
                      'title':ret.data.depts[i].title,
                      'id':ret.data.depts[i].id,
                    })
                  }
                  if(that.onlyfirst){
                    that.deptid = ret.data.depts[0].id;
                    that.onlyfirst = false;
                  }

                  that.prodata = ret.data.list;
                  var nunum;
                  if(that.tabsdata.length<3){
                    nunum = 2;
                  }else{
                    nunum = 3;
                  }
                  that.$nextTick(function(){
                    var mySwiper = new Swiper('.swiper-container',{
                      freeMode: true,
                      loop:false,//设置 active slide 居中后，会有左右留白现象，添加此会让未尾的导航补齐前后空白
                      slideToClickedSlide: true,//设置为true则点击slide会过渡到这个slide。
                      slidesPerView: nunum,
                      centeredSlides: false,//设定为true时，active slide会居中，而不是默认状态下的居左。
                      spaceBetween: 10,//slide之间设置距离
                      slidesOffsetBefore: 0,//设定slide与左边框的预设偏移量
                      slidesOffsetAfter: 0,//设定slide与右边框的预设偏移量

                    });

                  });
              }else{
                api.toast({
                    msg: ret.msg,
                    duration: 3000,
                    location: 'bottom'
                });
              }
            }else{
              api.hideProgress();
              console.log(JSON.stringify(err));
              api.toast({
                  msg: err.msg,
                  duration: 3000,
                  location: 'bottom'
              });
            }
          })
        },
        //招聘职位
        getposition:function(){
          let that=this;
          api.ajax({
            url:baseurl+'api/person/dept',
            methods:'get',
            data:{
              values:{
                sec: $api.getStorage('apptoken'),
                subid:that.deptid,
                _ssid:$api.getStorage('jobid')
              }
            }
          },function(ret,err){
            if(ret){
              api.hideProgress();
              console.log(JSON.stringify(ret));
              if(ret.status == 1){
                  that.positiondata = ret.data.list;
              }else{
                api.toast({
                    msg: ret.msg,
                    duration: 3000,
                    location: 'bottom'
                });
              }
            }else{
              api.hideProgress();
              console.log(JSON.stringify(err));
              api.toast({
                  msg: err.msg,
                  duration: 3000,
                  location: 'bottom'
              });
            }
          })
        },
        //月份
        getmonth:function(val){
          var that = this;
          console.log(val);
          that.cardsmonth = val;
          if(that.istype=='0'){
            that.getdatafirst()
          }else if(that.istype=='1'){
            that.getdatatwo()
          }else if(that.istype=='2'){
            that.getdatathird()
          }else if(that.istype=='3'){
            that.getdatafour()
          }

        },
        //选项卡
        handleClick(tab, event) {
          let id = event.target.getAttribute('id').split('-');
          let whitetab = id.join('').substring(3,9);
          let that = this;
          if(whitetab=='first'){//
            that.istype = '0';
            that.getdatafirst()
          }else if(whitetab=='second'){//
            that.istype = '1';
            that.getdatatwo()
          }else if(whitetab=='third'){//
            that.istype = '2';
            that.getdatathird()
          }else if(whitetab=='fourth'){//
            that.istype = '3';
            that.getdatafour()
          }
        },
        //2
        getdatatwo:function(){
          let that=this;
          api.ajax({
            url:baseurl+'api/meeting/getMonthTrainPerson',
            methods:'get',
            data:{
              values:{
                sec: $api.getStorage('apptoken'),
                date:that.cardsmonth,
                deptid:that.deptidtwo,
                _ssid:$api.getStorage('jobid')
              }
            }
          },function(ret,err){
            if(ret){
              api.hideProgress();
              console.log(JSON.stringify(ret));
              if(ret.status == 1){
                  for(var i=0;i<ret.data.depts.length;i++){
                    that.tabsdata.push({
                      'title':ret.data.depts[i].title,
                      'id':ret.data.depts[i].id,
                    })
                  }
                  if(that.onlyfirst){
                    that.deptid = ret.data.depts[0].id;
                    that.onlyfirst = false;
                  }

                  that.prodata = ret.data.list;
                  for(var i=0;i<that.prodata.length;i++){
                    that.getleveldata(that.prodata[i].promoteid)
                  }

                  var nunum;
                  if(that.tabsdata.length<3){
                    nunum = 2;
                  }else{
                    nunum = 3;
                  }
                  that.$nextTick(function(){
                    var mySwiper = new Swiper('.swiper-containertwo',{
                      freeMode: true,
                      loop:false,//设置 active slide 居中后，会有左右留白现象，添加此会让未尾的导航补齐前后空白
                      slideToClickedSlide: true,//设置为true则点击slide会过渡到这个slide。
                      slidesPerView: nunum,
                      centeredSlides: false,//设定为true时，active slide会居中，而不是默认状态下的居左。
                      spaceBetween: 10,//slide之间设置距离
                      slidesOffsetBefore: 0,//设定slide与左边框的预设偏移量
                      slidesOffsetAfter: 0,//设定slide与右边框的预设偏移量

                    });

                  });
              }else{
                api.toast({
                    msg: ret.msg,
                    duration: 3000,
                    location: 'bottom'
                });
              }
            }else{
              api.hideProgress();
              console.log(JSON.stringify(err));
              api.toast({
                  msg: err.msg,
                  duration: 3000,
                  location: 'bottom'
              });
            }
          })
        },
        //3
        getdatathird:function(){
          let that=this;
          api.ajax({
            url:baseurl+'api/meeting/getMonthTrainAll',
            methods:'get',
            data:{
              values:{
                sec: $api.getStorage('apptoken'),
                date:that.cardsmonth,
                _ssid:$api.getStorage('jobid')
              }
            }
          },function(ret,err){
            if(ret){
              api.hideProgress();
              console.log(JSON.stringify(ret));
              if(ret.status == 1){
                  that.prodatathird = ret.data.list;
              }else{
                api.toast({
                    msg: ret.msg,
                    duration: 3000,
                    location: 'bottom'
                });
              }
            }else{
              api.hideProgress();
              console.log(JSON.stringify(err));
              api.toast({
                  msg: err.msg,
                  duration: 3000,
                  location: 'bottom'
              });
            }
          })
        },
        //4
        getdatafour:function(){
          let that=this;
          api.ajax({
            url:baseurl+'api/meeting/getMonthTeambuild',
            methods:'get',
            data:{
              values:{
                sec: $api.getStorage('apptoken'),
                date:that.cardsmonth,
                _ssid:$api.getStorage('jobid')
              }
            }
          },function(ret,err){
            if(ret){
              api.hideProgress();
              console.log(JSON.stringify(ret));
              if(ret.status == 1){
                  that.prodatafour = ret.data.list;
              }else{
                api.toast({
                    msg: ret.msg,
                    duration: 3000,
                    location: 'bottom'
                });
              }
            }else{
              api.hideProgress();
              console.log(JSON.stringify(err));
              api.toast({
                  msg: err.msg,
                  duration: 3000,
                  location: 'bottom'
              });
            }
          })
        },
        //获取职级
        getleveldata:function(val){
          let that=this;
          api.ajax({
            url:baseurl+'api/practice/jobLevelBypromote',
            methods:'get',
            data:{
              values:{
                sec: $api.getStorage('apptoken'),
                id:val,
                _ssid:$api.getStorage('jobid')
              }
            }
          },function(ret,err){
            if(ret){
              api.hideProgress();
              console.log(JSON.stringify(ret));
              if(ret.status == 1){
                  that.leveldata = ret.data.list;
              }else{
                api.toast({
                    msg: ret.msg,
                    duration: 3000,
                    location: 'bottom'
                });
              }
            }else{
              api.hideProgress();
              console.log(JSON.stringify(err));
              api.toast({
                  msg: err.msg,
                  duration: 3000,
                  location: 'bottom'
              });
            }
          })
        },
        //培养职级
        tochangelevel:function(val,index){
          var that = this;
          that.getleveldata(val)
        },
        //原职级
        getnameselect:function(val,index){
          var that = this;
          that.getbefore(val,index)
        },
        //获取原职级
        getbefore:function(id,index){
          let that=this;
          console.log(index);
          var tindex = index;
          api.ajax({
            url:baseurl+'api/member/info',
            methods:'get',
            data:{
              values:{
                sec: $api.getStorage('apptoken'),
                id:id,
                _ssid:$api.getStorage('jobid')
              }
            }
          },function(ret,err){
            if(ret){
              api.hideProgress();
              console.log('info:'+JSON.stringify(ret));
              if(ret.status == 1){
                that.prodata[tindex].pre_level = ret.data.level_title;
                that.prodata = that.prodata
                console.log(JSON.stringify(that.prodata));
              }else{
                api.toast({
                    msg: ret.msg,
                    duration: 3000,
                    location: 'bottom'
                });
              }
            }else{
              api.hideProgress();
              console.log(JSON.stringify(err));
              api.toast({
                  msg: err.msg,
                  duration: 3000,
                  location: 'bottom'
              });
            }
          })
        },
        //人
        getperson:function(){
          let that=this;
          api.ajax({
            url:baseurl+'api/person/list',
            methods:'get',
            data:{
              values:{
                sec: $api.getStorage('apptoken'),
                _ssid:$api.getStorage('jobid')
              }
            }
          },function(ret,err){
            if(ret){
              api.hideProgress();
              console.log(JSON.stringify(ret));
              if(ret.status == 1){
                that.perdata = ret.data.list;

              }else{
                api.toast({
                    msg: ret.msg,
                    duration: 3000,
                    location: 'bottom'
                });
              }
            }else{
              api.hideProgress();
              console.log(JSON.stringify(err));
              api.toast({
                  msg: err.msg,
                  duration: 3000,
                  location: 'bottom'
              });
            }
          })
        },
        //晋升通道
        getgrowup:function(){
          let that=this;
          api.ajax({
            url:baseurl+'api/practice/promoteSection',
            methods:'get',
            data:{
              values:{
                sec: $api.getStorage('apptoken'),
                subid:that.deptid,
                _ssid:$api.getStorage('jobid')
              }
            }
          },function(ret,err){
            if(ret){
              api.hideProgress();
              console.log(JSON.stringify(ret));
              if(ret.status == 1){
                  that.growupdata = ret.data.list;
              }else{
                api.toast({
                    msg: ret.msg,
                    duration: 3000,
                    location: 'bottom'
                });
              }
            }else{
              api.hideProgress();
              console.log(JSON.stringify(err));
              api.toast({
                  msg: err.msg,
                  duration: 3000,
                  location: 'bottom'
              });
            }
          })
        },
      }
    })
	}


	</script>
</body>
</html>
